//
//  DetialModel.m
//  News
//
//  Created by xalo on 16/3/2.
//  Copyright © 2016年 News. All rights reserved.
//

#import "DetialModel.h"

@implementation DetialModel

-(void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];


}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    
}

//归档
- (void)encodeWithCoder:(NSCoder *)aCoder {
    
   
    [aCoder encodeObject:_alt forKey:@"alt"];
    [aCoder encodeObject:_kpic forKey:@"kpic"];
    [aCoder encodeObject:_pic forKey:@"pic"];

}

//犯归档
- (nullable instancetype)initWithCoder:(NSCoder *)aDecode {
    
    self = [super init];
    if (self) {
     
        self.alt = [aDecode decodeObjectForKey:@"alt"];
        self.kpic = [aDecode decodeObjectForKey:@"kpic"];
        self.pic = [aDecode decodeObjectForKey:@"pic"];

    }
    
    return self;
    
}




@end
